package com.xunji.user.service;



import com.xunji.user.entity.Org;
import com.xunji.user.vo.rep.OrgQueryResponse;
import com.xunji.user.vo.req.OrgAddRequest;
import com.xunji.user.vo.req.OrgUpdateRequest;

import javax.security.auth.login.LoginException;
import java.util.ArrayList;
import java.util.List;

public interface OrgService {

    List<OrgQueryResponse> getOrgs();
    void addOrg(OrgAddRequest request) throws LoginException;

    void updateOrg(OrgUpdateRequest request);

    void deleteById(Integer id);

    List<Org> getByIds(List<Integer> ids);

    Org getOrgById(Integer id);

    Org selectById(Integer id);

    List<Org> selectByName(String name);


    List<Org> selectByNameAndNotSelf(String name, Integer id);

    List<Org> selectByPid(Integer pid);

    ArrayList<Integer> getAllChildrenId(Integer id);
}
